<template>
  <!--判断查找全屏标签-->
  <div v-if="$route.meta.usefrom != undefined && $route.meta.usefrom == true">
    <RouterView></RouterView>
  </div>
  <!-- 解决 内嵌问题-->
  <div v-if="$route.meta.usefrom == undefined || $route.meta.usefrom == false">

    <el-container>
      <el-header>
        <el-row class="row-bg" justify="space-between">
          <el-col :span="6">
            <img src="./assets/logo.jpg" alt="" width="200" height="46">
          </el-col>
          <el-col :span="12">
            <div style="text-align: center; line-height: 46px;">智能M站服务管理系统</div>

          </el-col>
          <el-col :span="3">
            <el-dropdown>
              <span class="el-dropdown-link">
                萧炎
                <el-icon class="el-icon--right">
                  <arrow-down />
                </el-icon>
              </span>
              <template #dropdown>
                <el-dropdown-menu>
                  <el-dropdown-item>个人中心</el-dropdown-item>
                  <el-dropdown-item>账户与安全</el-dropdown-item>
                  <el-dropdown-item>星云阁地址</el-dropdown-item>
                  <el-dropdown-item>关于我们</el-dropdown-item>
                  <el-dropdown-item divided>登出</el-dropdown-item>
                </el-dropdown-menu>
              </template>
            </el-dropdown>
          </el-col>
        </el-row>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <!--菜单组件-->
          <Menus></Menus>
        </el-aside>
        <el-main>
          <!--所有路由的总出口-->
          <RouterView></RouterView>
        </el-main>
      </el-container>
    </el-container>

  </div>
</template>
<script setup>
import Menus from './components/Menus.vue';


</script>
<style scoped>
.el-header{
  height: 46px;
  background-color: #b0cff6;
  padding-left: 0px;
}
.el-aside{
  background-color: #bee4f5;
  height: calc(100vh - 46px);
}
.el-dropdown{
 line-height: 46px;
 /* margin-left: 45px; */
 float: right;
}
</style>